﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace OSIRIS.Service.Contracts
{
    /// <summary>
    /// The ContactDetails class contains the data contract for
    /// the contact details of a student or teacher.
    /// </summary>
    [KnownType(typeof(StudentDetails))]
    [KnownType(typeof(TeacherDetails))]
    [DataContract]
    public class ContactDetails
    {
        /// <summary>
        /// The number of the entity
        /// </summary>
        [DataMember]
        public string Number { get; set; }

        /// <summary>
        /// The first name of the entity
        /// </summary>
        [DataMember]
        public string FirstName { get; set; }

        /// <summary>
        /// The prefix of the entity
        /// </summary>
        [DataMember]
        public string Prefix { get; set; }

        /// <summary>
        /// The last name of the entity
        /// </summary>
        [DataMember]
        public string LastName { get; set; }

        /// <summary>
        /// The email address of the entity
        /// </summary>
        [DataMember]
        public string Email { get; set; }

        /// <summary>
        /// The phone number of the entity
        /// </summary>
        [DataMember]
        public string TelephoneNumber { get; set; }
    }
}
